<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">添加车辆</h1>
</div>
<div class="wrapper-sm">
    <uib-tabset active="1" class="tab-container" ng-init="steps={percent:35, step1:true, step2:false, step3:false, step4:false}">
        <uib-tab heading="基本信息" index="1" active="steps.step1">

            <form id="form" name="step1" class="form-validation form-horizontal" ng-controller="carManagentAddController" novalidate>
                <div class="form-group">
                    <label class="col-lg-2 control-label">车牌号<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <input type="text" id="carAdd_carCode" class="form-control uppercase input-sm" ng-model="carCode" required placeholder="请填写车牌号" name="carCode" ng-pattern="/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领a-zA-Z]{1}[a-zA-Z]{1}[a-zA-Z0-9]{4}[a-zA-Z0-9挂学警港澳]{1}$/">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">车型<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <select class="form-control input-sm" id="carAdd_carType" ng-model="carType" name="carType" ng-options="x.value as x.text for x in carTypeDropDown" required>
                          <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">车长<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <select class="form-control input-sm" id="carAdd_carLength" ng-model="carLength" name="carLength" ng-options="x.value as x.text for x in carLengthDropDown" required>
                        <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">核定载重</label>
                    <div class="col-lg-2">
                        <input id="carAdd_bearing" type="text" ng-pattern="/^[0-9]+(.[0-9]{1,4})?$/" class="form-control input-sm" ng-model="bearing" placeholder="请填写核定载重" name="bearing" />
                    </div>
                    <label class="control-label">吨</label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">驾驶员姓名<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <input id="carAdd_driver" type="text" class="form-control input-sm" ng-model="driver" placeholder="请填写驾驶员姓名" required name="driver" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">身份证号码<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <input type="text" id="carAdd_identity" class="form-control uppercase input-sm" ng-model="identity" required placeholder="请填写身份证号码" name="identity" ng-pattern="/^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|x|X)$/">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">驾驶员号码<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <input id="carAdd_driverPhone" type="tel" class="form-control input-sm" ng-model="driverPhoneNumber" placeholder="请填写驾驶员号码" name="driverPhone" ng-pattern="/^1\d{10}$/" required />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">承运类别<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <select id="carAdd_carrierCategory" class="form-control input-sm" ng-model="carrierCategory" name="carrierCategory" ng-options="x.value as x.text for x in carrierCategoryDropDown" required>
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">车辆来源</label>
                    <div class="col-lg-2">
                        <input id="carAdd_carSource" type="text" class="form-control input-sm" ng-model="carSource" placeholder="请填写车辆来源" name="carSource">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">道路运输许可证号</label>
                    <div class="col-lg-2">
                        <input type="text" id="carAdd_permitNumber" class="form-control input-sm" ng-model="permitNumber" placeholder="道路运输许可证号" ng-disabled="dispatchOfficerDis" name="permitNumber">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">所属辖区</label>
                    <div class="col-lg-6">
                        <tms-address province="provinceCode" city="cityCode" area="areaCode" city-list="CityList" area-list="AreaList" required="false">
                        </tms-address>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">道路运输证字号</label>
                    <div class="col-lg-2">
                        <input id="carAdd_roadTransportCertificateNumber" type="text" class="form-control input-sm" ng-model="roadTransportCertificateNumber" placeholder="请填写道路运输证字号" name="roadTransportCertificateNumber">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">地址</label>
                    <div class="col-lg-4">
                        <input id="carAdd_address" type="text" class="form-control input-sm" ng-model="address" placeholder="请填写地址" name="address">

                    </div>
                </div>

                <div class="form-group">
                    <div class="m-t m-b col-lg-4">
                        <button id="carAdd_back" class="btn btn-sm btn-default btn-rounded pull-right m-l-sm" ui-sref="app.car.carManagent">返回</button>
                        <button id="carAdd_save" class="btn btn-sm btn-default btn-rounded pull-right" ng-disabled="step1.$invalid || saveDis" ng-click="click()">保存</button>
                    </div>
                </div>
            </form>
        </uib-tab>

    </uib-tabset>
</div>